<%@page import="clases.Noticia"%>
<%@page import="java.util.Iterator"%>
<%@page import="clases.Coordinador"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<div class="centrar">  
<h1>Noticias</h1>
<logic:present name="noticias" >
    <table class="left">
        <thead>
        <th style="width: 30%">Titulo</th>
        <th style="width: 55%">Descripci&oacute;n</th>
        <th style="width: 15%">Fecha</th>
        </thead>
    <tbody>
    <logic:iterate name="noticias" id="n" >
        <tr>
            <td><b><bean:write name="n"   property="titulo" /></b></td>
            <td><bean:write name="n"   property="cuerpo" /></td>
            <td><bean:write name="n" property="fechaPublicacion" /></td>
            
        </tr>
    </logic:iterate>
        </tbody>        
</table>
</logic:present>
<logic:notPresent name="noticias" >
    No hay noticias publicadas.
</logic:notPresent>
</div>